﻿/*
 * shaim
 * http://shaim.net
 * Copyright ©2005-2008, shaim dev team
 * Licensed under the Massachusetts Institute of Technology (MIT) License
 * http://www.opensource.org/licenses/mit-license.php
 * 
 */

using System.Xml;

namespace csammisrun.shaim
{
    /// <summary>
    /// Specifies an interface for elements which request a certain order in a BindingListCollection
    /// </summary>
    public interface IOrderableElement
    {
        /// <summary>
        /// Gets the preferred order of the list element
        /// </summary>
        int PreferredOrder { get; }
    }

    /// <summary>
    /// Implemented by contact list items that are serializable
    /// </summary>
    internal interface IContactListSerializable
    {
        /// <summary>
        /// Gets the XPath expression that will locate the given node relative to its parent
        /// </summary>
        string XPath { get; }
        /// <summary>
        /// Sets item-specific attributes on an XmlNode
        /// </summary>
        void SetXmlNodeAttributes(XmlNode node);
    }
}
